package sca.scaService;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import sca.scaService.factory.ProviderFallbackFactory;

@FeignClient(name = "sca-provider",contextId = "RemoteProviderService", fallbackFactory = ProviderFallbackFactory.class)
public interface RemoteProviderService {
    @GetMapping("/provider/echo/{msg}")
    String echoMsg(@PathVariable String msg);
}
